package cn.chrilwe.pigpig.core.model.user;

import cn.chrilwe.autocreatetable.start.annotation.Entity;
import cn.chrilwe.autocreatetable.start.annotation.mysql.Column;
import cn.chrilwe.autocreatetable.start.annotation.mysql.Notnull;
import cn.chrilwe.autocreatetable.start.annotation.mysql.Table;
import cn.chrilwe.autocreatetable.start.common.Engine;
import cn.chrilwe.autocreatetable.start.common.MysqlColumnType;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * 
 * @author chrilwe
 * 2020-8-8
 */
@Data
@ApiModel
@Entity
@Table(charset = "utf8", engine = Engine.INNODB, name = "tb_role_auth")
public class RoleAuth {
	
	@Column(length = 8, name = "role_id", type = MysqlColumnType.INT)
	@Notnull
	@ApiModelProperty(name = "role_id", value = "用户角色id")
	private int roleId;
	
	@Column(length = 8, name = "auth_id", type = MysqlColumnType.INT)
	@Notnull
	@ApiModelProperty(name = "auth_id", value = "用户权限id")
	private int authId;

}
